﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Shared/ContentMaster.master"
    CodeFile="floatAd.aspx.cs" Inherits="ltMan_ads_floatAd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style>
.adList a,.adList a:visited {
    text-decoration:none;
    color:Blue;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH1" runat="Server">
    <telerik:RadAjaxManagerProxy runat="server" ID="proxy1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="mainPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadDock ID="RadDock1" runat="server" Width="98%" Title="<div class='ta-center'><b>漂浮窗口</b></div>"
        DockMode="Docked" EnableRoundedCorners="true" Top="" Left="" DefaultCommands="None"
        Pinned="True">
        <ContentTemplate>
            <asp:Panel ID="mainPanel" runat="server">
                <telerikEx:InfoPanel runat="server" ID="infoPanel" />
                <table class="stab" align="center" width="100%">
                    <tr>
                        <td colspan="2" class="adList">
                            <asp:Repeater runat="server" ID="sAds">
                                <ItemTemplate>
                                    &nbsp;&nbsp;[<a href="?id=<%# Eval("id") %>" title="<%# Eval("pname") %>" <%#Highlight(Eval("id")) %>><%# Eval("pname") %></a>]
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                    <tr>
                        <td class="ta-center">
                            显示图片：
                        </td>
                        <td>
                            <telerikEx:AsyncUploadEx ID="sFile" runat="server" />
                            <asp:HiddenField runat="server" ID="sFileHid" />
                        </td>
                        <td width="200" rowspan="5" align="center">
                            <img alt="" width="180" id="sImg" runat="server" visible="false" />
                        </td>
                    </tr>
                    <tr>
                        <td class="ta-center">
                            链接地址：
                        </td>
                        <td>
                            <telerik:RadTextBox runat="server" ID="sLink" Width="315" MaxLength="100" />
                        </td>
                    </tr>
                    <tr>
                        <td class="ta-center">
                            是否显示：
                        </td>
                        <td>
                            <telerik:RadButton ID="sShow" runat="server" ToggleType="CustomToggle" UseSubmitBehavior="false"
                                AutoPostBack="false" CausesValidation="false">
                                <ToggleStates>                                    
                                    <telerik:RadButtonToggleState Text="否" PrimaryIconCssClass="rbToggleCheckbox" />
                                    <telerik:RadButtonToggleState Text="是" PrimaryIconCssClass="rbToggleCheckboxChecked" />
                                </ToggleStates>
                            </telerik:RadButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="ta-center">
                            开始时间：
                        </td>
                        <td>
                            <telerik:RadDateTimePicker runat="server" ID="sBegin" DateInput-EmptyMessage="选择时间"
                                DateInput-ReadOnly="true" Calendar-FastNavigationSettings-OkButtonCaption="确定"
                                Calendar-FastNavigationSettings-CancelButtonCaption="取消" Calendar-FastNavigationSettings-TodayButtonCaption="今天" />
                        </td>
                    </tr>
                    <tr>
                        <td class="ta-center">
                            结束时间：
                        </td>
                        <td>
                            <telerik:RadDateTimePicker runat="server" ID="sEnd" DateInput-EmptyMessage="选择时间"
                                DateInput-ReadOnly="true" Calendar-FastNavigationSettings-OkButtonCaption="确定"
                                Calendar-FastNavigationSettings-CancelButtonCaption="取消" Calendar-FastNavigationSettings-TodayButtonCaption="今天" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="ta-center">
                            <telerik:RadButton ID="RadSave" runat="server" Text="保存" ToolTip="保存" Icon-PrimaryIconCssClass="icon-save"
                                OnClick="RadSave_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </telerik:RadDock>
</asp:Content>
